const Product = require('../../../table/mongo/product');

module.exports = function (req, res) {
    let id = new Product({
        name: '宝马x6',
        price: 1200000,
        detail: '车况良好',
        image: ['http://ow99flg7x.bkt.clouddn.com/q_poster.jpg'],
        want: 5
    }).save();
    res.json({statu: 'success', id: id});
}